package com.dashu.school.model;


import com.dashu.base.enums.school.RelationshipType;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;

@Entity
@Table(name = "ds_relationship")
@Data
public class Relationship implements Serializable {
    /**
     * 设备属性
     */
    @Id
    private long id; //主键id
    private long createTime;//创建时间
    private long createUser;// 创建者
    private long updateTime;//更新时间
    private long updateUser;//更新者
    @Enumerated(EnumType.STRING)
    private RelationshipType relationship; // 关系
    private long bindMain;//主关系
    private long bindSon;//子关系
    private long companyId;//所属学校
}
